package com.hns.can.safety.entity;

import com.hns.can.common.entity.BaseEntity;

import javax.persistence.*;
import java.math.BigDecimal;
import java.util.Date;

/**
 * @version Revision 1.0.0
 * @版权：HNS 版权所有 (c) 2013
 * @author:JeffXu
 * @email:835264047@qq.com
 * @see:
 * @创建日期：2014-8-22
 * @功能说明：线路黑点关系历史表
 * @begin
 * @修改记录:
 * @修改后版本 修改人        修改内容
 * @2014-8-22 JeffXu            创建
 * @end
 */
@Entity
@Table(name = "T_BASE_LINE_BLACK_REL_HIS")
public class BaseLineBlackRelHisEntity extends BaseEntity implements java.io.Serializable {
    private String rcrdId;
    private String corpId;
    private String relId;
    private String strtusDate;
    private String dsablDate;
    private BigDecimal strtusDura;
    private Date crtTime;
    private String crtUser;
    private Date updateTime;
    private String updateUser;

    //界面需要
    private String lineName;
    private String blackName;
    private BigDecimal dangerDegree;

    @Id
    @Column(name = "RCRD_ID")
    public String getRcrdId() {
        return rcrdId;
    }

    public void setRcrdId(String rcrdId) {
        this.rcrdId = rcrdId;
    }

    @Basic
    @Column(name = "CORP_ID")
    public String getCorpId() {
        return corpId;
    }

    public void setCorpId(String corpId) {
        this.corpId = corpId;
    }

    @Basic
    @Column(name = "REL_ID")
    public String getRelId() {
        return relId;
    }

    public void setRelId(String relId) {
        this.relId = relId;
    }

    @Basic
    @Column(name = "STRTUS_DATE")
    public String getStrtusDate() {
        return strtusDate;
    }

    public void setStrtusDate(String strtusDate) {
        this.strtusDate = strtusDate;
    }

    @Basic
    @Column(name = "DSABL_DATE")
    public String getDsablDate() {
        return dsablDate;
    }

    public void setDsablDate(String dsablDate) {
        this.dsablDate = dsablDate;
    }

    @Basic
    @Column(name = "STRTUS_DURA")
    public BigDecimal getStrtusDura() {
        return strtusDura;
    }

    public void setStrtusDura(BigDecimal strtusDura) {
        this.strtusDura = strtusDura;
    }

    @Basic
    @Column(name = "CRT_TIME")
    public Date getCrtTime() {
        return crtTime;
    }

    public void setCrtTime(Date crtTime) {
        this.crtTime = crtTime;
    }

    @Basic
    @Column(name = "CRT_USER")
    public String getCrtUser() {
        return crtUser;
    }

    public void setCrtUser(String crtUser) {
        this.crtUser = crtUser;
    }

    @Basic
    @Column(name = "UPDATE_TIME")
    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    @Basic
    @Column(name = "UPDATE_USER")
    public String getUpdateUser() {
        return updateUser;
    }

    public void setUpdateUser(String updateUser) {
        this.updateUser = updateUser;
    }

    @Transient
    public String getLineName() {
        return lineName;
    }

    public void setLineName(String lineName) {
        this.lineName = lineName;
    }

    @Transient
    public String getBlackName() {
        return blackName;
    }

    public void setBlackName(String blackName) {
        this.blackName = blackName;
    }

    @Transient
    public BigDecimal getDangerDegree() {
        return dangerDegree;
    }

    public void setDangerDegree(BigDecimal dangerDegree) {
        this.dangerDegree = dangerDegree;
    }
}
